package hieudd.appgame.andengine;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class AppGActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button btnNewGame = (Button)findViewById(R.id._newGame);
        Button btnSetting = (Button)findViewById(R.id._settingGame);
        Button btnQuit = (Button)findViewById(R.id._quitGame);
        
        // setlistenner button Quit
        //btnQuit.setOnClickListener(this);
    }
    
    // event button click
    
    public void onQuitGameClick(View view)
    {
    	// kill activity main
    	AppGActivity.this.finish();
    	
    }
    
    // new SceneGame
    public void onNewGameClick(View view)
    {
    	Intent i = new Intent(this,newSceneGame.class);
    	startActivity(i);
    }
    
    // setting game
    public void onSettingClick(View view)
    {
    	Intent in = new Intent(this, ChoiceLevelGame.class);
    	startActivity(in);
    }
}